function query1() {
    
	if (checkdept()==false)

		return;
		
	if (check3()== false)

		return;

	document.querybr.action = "countmeetingbydept.vm";
	document.querybr.submit();

	}
function query2() {
	if (check3() == false)

		return;
	if (checkdept() == false)

		return;
	document.querybr.action = "countmeetingbingtubydept.vm";
	document.querybr.submit();
}
function query3() {
	if (check3() == false)

		return;
	if (checkdept() == false)

		return;
	document.querybr.action = "countmeetingbingtutwobydept.vm";
	document.querybr.submit();
}
function check3() {

	var btime1 = $("#btime1").val();
	var etime1 = $("#etime1").val();
	if (btime1=="") {
		if(etime1=="")
		
		if(check()==false){
			
			return false;
		}
		
	}
	if (btime1!="") {
		
		if (etime1 =="") {
			alert("结束时间不能为空");
			return false;
		}else{
			
			checktime(btime1,etime1);
		}
		
	
		
	}
	if (btime1== "") {

		if (etime1!="") {
			alert("开始时间不能为空");
			return false;
		}
	}

}
 function checkdept(){
	
	     var dept=$("#departidd").val();
	     
		
		 if ($.trim(dept)=="请选择")
		 {
          
			alert("部门不能为空");
			return false;
		  }
 }
function check() {
	
	
	var yue2 = $("#yuee").val();

	var jd2 = $("#jd2").val();
	var year2 = $('#year2').val();
	
	if (year2=="请选择"){

		alert('年份請不能为空');
		return false;
	}
	if ($.trim(yue2)=="请选择" && $.trim(jd2)=="请选择") {
		
		alert("季度月份請选择一个");
		return false;
	
  }
if (yue2!="请选择"&& jd2!="请选择") {
	
	alert("季度月份只选择一个");
	return false;
	  }





}

function checktime(b,e)
{

	if(b>e)
	{
		alert("开始时间不能大于结束时间");
		return false;
	}
}